{template header.html}
<div class="content clearfix">
    {template navigator.html}
    <div class="article">
        {if $my}
        <div class="section">
            <div class="title"><strong>我购买的模板</strong></div>
            <div class="main dr_table">
                <div class="bk10"></div>
                <div class="brand_list clearfix">
                    <ul class="clearfix">
                        {loop $my $t}
                        <li>
                            <a class="mytpl" {if $style==$t.name} href="javascript:;" style="border: 1px solid #F00"{else} href="{dr_member_url('space/template', array('style'=>$t.name))}" {/if}>
                            <img width="150" height="145" src="{$t.preview}" />
                            <p>{$t.name}</p>
                            </a>
                        </li>
                        {/loop}
                    </ul>
                </div>
                <div class="bk10"></div>
            </div>
        </div>
        {/if}
        <div class="section">
            <div class="title"><strong>全部模板</strong></div>
            <div class="main dr_table">
                <div class="bk10"></div>
                <div class="brand_list clearfix">
                    <ul class="clearfix">
                        {loop $list $dir $t}
                        {if !isset($my[$dir])}
                        <li>
                            <a {if $style==$t.name} href="javascript:;" style="border: 1px solid #F00"{else} href="{if $t.price && !$my[$dir]}javascript:dr_confirm_url('您确定购买此模板吗？', '{dr_member_url('space/template', array('style'=>$t.name))}');{else}{dr_member_url('space/template', array('style'=>$t.name))}{/if}" {/if}>
                            <img width="150" height="145" src="{$t.preview}" />
                            <p>{$t.name}</p>
                            <p class="price"><b>
                                {if $t.price}
                                <font color="red">售价：{$t.price}（{SITE_SCORE}）</font>
                                {else}
                                <font color="blue">免费</font>
                                {/if}
                            </b></p>
                            </a>
                        </li>
                        {/if}
                        {/loop}
                    </ul>
                </div>
                <div class="bk10"></div>
            </div>
        </div>
    </div>
</div>
{template footer.html}